package demo1;

import org.springframework.stereotype.Component;
/*
   @Component注解，Spring容器提供注解，只有被注解的类才能被Spring容器管理
 */
@Component
public class Person {
    public void sayhello(){
        System.out.println("Person:hello");
    }
}
